#ifndef WORLD_OBJ_H
#define WORLD_OBJ_H

#define PTM_RATIO 32.0f
#define SCREEN_TO_WORLD(n) ((n) / PTM_RATIO)
#define WORLD_TO_SCREEN(n) ((n) * PTM_RATIO)
#define B2_ANGLE_TO_COCOS_ROTATION(n) (-1 * CC_RADIANS_TO_DEGREES(n))
#define COCOS_ROTATION_TO_B2_ANGLE(n) (CC_DEGREES_TO_RADIANS(-1 * n))

#include "Obj.h"

USING_NS_CC;

class WorldObj : public Obj {
public:
    void setWorldBody(b2Body* body) {
        this->worldBody = body;
    }
    
    b2Body* getWorldBody() {
        return this->worldBody;
    }
    
    void setFixture(b2Fixture* fixture) {
        this->worldFixture = fixture;
    }
    
    b2Fixture* getFixture() {
        return this->worldFixture;
    }
private:
    b2Body* worldBody;
    b2Fixture* worldFixture;
};

#endif

